package com.swpu.demo.entity;

import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author Author Name
 * @since 2021-05-12
 */
@Data
@ApiModel(value="商品对象", description="实体类")
public class Goods{


    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "商品产地")
    private String origin;

    @ApiModelProperty(value = "商品单价")
    private BigDecimal price;

    @ApiModelProperty(value = "生产厂商")
    private String manufacturerName;

    @ApiModelProperty(value = "商品类别")
    private String type;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "商品图片地址")
    private String image;

    @ApiModelProperty(value = "商品库存")
    private Integer stock;

    @ApiModelProperty(value = "商品销量")
    private Integer sales;

    @ApiModelProperty(value = "是否推荐")
    private Integer recommend;

    @ApiModelProperty(value = "参与的活动")
    private String active;

    @ApiModelProperty(value = "商品评价")
    private String evaluate;

    @ApiModelProperty(value = "生产时间")
    private String productionTime;

    @ApiModelProperty(value = "保质期(天)")
    private Integer expirationTime;


}
